@charset 'utf-8';

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
}

.carousel_box{
    width: 60%;
    padding-top: 33.72%;
    background: #87ceeb;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    overflow: hidden;
    ul{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        font-size: 0;
        white-space: nowrap;
        transition: all .8s ease-in-out;
        li{
            width: 100%;
            display: inline-block;
            img{
                width: 100%;
            }
        }
    }
    .arrow{
        position: absolute;
        top: 0;
        width: 0;
        height: 100%;
        overflow: hidden;
        transition: width .3s ease-in-out;
        cursor: pointer;
        span{
            color: rgba(255,255,255,.8);
            font-size: 40px;
            font-weight: bold;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
        }
        &:hover span{
            color: #fff;
        }
    }
    .left_arrow{
        left: 0;
        background: linear-gradient(90deg,rgba(0,0,0,.8),transparent);
    }
    .right_arrow{
        right: 0;
        background: linear-gradient(-90deg,rgba(0,0,0,.8),transparent);
    }
    &:hover {
        .arrow{
            width: 20%;
        }
        ol{
            bottom: 20px;
        }
    }
    ol{
        font-size: 0;
        white-space: nowrap;
        position: absolute;
        left: 50%;
        bottom: -20%;
        transform: translate(-50%,-50%);
        transition: bottom .3s ease-in-out;
        li{
            display: inline-block;
            width: 10px;
            height: 10px;
            background: #fff;
            border-radius: 50%;
            margin: 0 4px;
            &:hover{
                background: #87ceeb;
            }
        }
    }
}
